import request from "@/utils/request";
// 接单管理的所有接口
export function queryorder_school(query) {
  return request({
    url: "/mba/order/list",
    method: "get",
    params: query
  });
}
export function addorder_school(data) {
  return request({
    url: "/mba/order",
    method: "post",
    data: data
  });
}
export function updateorder_school(data) {
  return request({
    url: "/mba/order",
    method: "put",
    data: data
  });
}
export function delorder_school(ids) {
  return request({
    url: `/mba/order/${ids}`,
    method: "delete"
  });
}
// 批量审核
export function shorder(ids) {
  return request({
    url: `/mba/order/${ids}`,
    method: "post"
  });
}
export function nijisiai(data) {
  return request({
    url: `/mba/order/order/add`,
    method: "post",
    data:data
  });
}
export function nijisiai1(data) {
  return request({
    url: `/mba/order`,
    method: "put",
    data:data
  });
}
export function nijisiai2(data) {
  return request({
    url: `/mba/order/complete`,
    method: "put",
    data:data
  });
}
export function upload(data) {
  return request({
    url: `/goods/goods/upload`,
    method: "post",
    data
  });
}
export function ex(data) {
  return request({
    url: `/mba/order/examine`,
    method: "post",
    data:data
  });
}
// 报名管理代缴
export function daijiao(id) {
  return request({
    url: `/mba/order/payment/sanc/${id}`,
    method: "get",
  });
}
// 手动代缴
export function daijiao1(data) {
  return request({
    url: '/mba/order/behalf',
    method: "post",
    data
  });
}
export function getOrder(id) {
  return request({
    url: `/mba/order/payment/status/${id}`,
    method: 'get',
  })
}

// 分类列表
export function getClassList(data) {
  return request({
    url: `registration/queryByLimit`,
    method: "get",
    params:data
  });
}
// 分类新增
export function getXinzeng(data) {
  return request({
    url: `registration/saveRegistrationType`,
    method: "post",
    data
  });
}
// 删除
export function delClass(id) {
  return request({
    url: `/registration/delRegistrationType/${id}`,
    method: "post"
  });
}
// 修改
export function updateClass(data) {
  return request({
    url: `registration/updateRegistrationType`,
    method: "post",
    data
  });
}

// 列表
export function getFieldList(data) {
  return request({
    url: `registration/queryName`,
    method: "get",
    params:data
  });
}
//新增
export function getFieldAdd(data) {
  return request({
    url: `registration/saveField`,
    method: "post",
    data
  });
}
// 修改
export function updateField(data) {
  return request({
    url: `registration/updateField`,
    method: "post",
    data
  });
}
// 选择对应的分类
export function getClassList1(data) {
  return request({
    url: `registration/query`,
    method: "get",
    params:data
  });
}
// 获取messname
export function getMesName(id) {
  return request({
    url: `registration/queryMesName/${id}`,
    method: "get",
  });
}
// 获取列表
export function getRegistration(data) {
  return request({
    url: `/registration/getRegistration`,
    method: "get",
    params:data
  });
}
// 删除
export function delReg(data) {
  return request({
    url: `/registration/delRegistrationData`,
    method: "post",
    params:data,
  });
}

// 字段详情
export function getFiled(id) {
  return request({
    url: `registration/queryFiled/${id}`,
    method: "get",
  });
}

// 根据分类id获取
export function getQueryName(id) {
  return request({
    url: `registration/queryName/${id}`,
    method: "get",
  });
}
// 新增报名
export function getadd(data) {
  return request({
    url: `/registration/saveRegistrationData`,
    method: "post",
    data,
  });
}
// 获取详情id
export function getRegistrationXq(id) {
  return request({
    url: `/registration/getRegistration//${id}`,
    method: "get",
  });
}
export function getUp(data) {
  return request({
    url: `/registration/updateRegistrationData`,
    method: "post",
    data,
  });
}